﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using PlaceOrder_Core.PlaceOrderModels.Base;

namespace PlaceOrder_Core.PlaceOrderModels;

[Table("tradehistory_id11")]
public partial class TradehistoryId11 : TradeHistory
{
    [Column("tscode")]
    public string Tscode { get; set; } = null!;

    [Column("tradedate")]
    public DateTime Tradedate { get; set; }

    [Column("tradetime")]
    public string Tradetime { get; set; } = null!;

    [Column("tradeprice")]
    public decimal Tradeprice { get; set; }

    [Column("dealtype")]
    public string Dealtype { get; set; } = null!;

    [Column("brokerid")]
    public int? Brokerid { get; set; }

    [Column("forwardcontact")]
    public bool? Forwardcontact { get; set; }

    [Column("tradeid")]
    public string? Tradeid { get; set; }

    [Column("duration")]
    public string? Duration { get; set; }

    [Column("changebp")]
    public string? Changebp { get; set; }


    [Column("netprice")]
    public decimal? Netprice { get; set; }

    [Column("id")]
    [Key]
    public long Id { get; set; }

    [Column("addedtime")]
    public DateTime? Addedtime { get; set; }


    [Column("withdraw")]
    public bool? Withdraw { get; set; }

    [Column("settle_speed")]
    public string? SettleSpeed { get; set; }
}